package com.zx._09_架构.扩展性.cpt1_event;

import com.zx._09_架构.扩展性.cpt1_event.event.AddEvent;
import com.zx._09_架构.扩展性.cpt1_event.event.UpStringEvent;
import com.zx._09_架构.扩展性.cpt1_event.handler.EventHandler;

public class Main1 {

    public static void main(String[] args) {
        // 定义事件
        AddEvent event1 = new AddEvent(1, 2);
        UpStringEvent event2 = new UpStringEvent("abc");

        // 发布事件
        EventHandler.publicEvent(event1);
        EventHandler.publicEvent(event2);
    }
}
